<?php
include_once 'controller/session.php';
include_once 'config.php';
include_once 'model/model.php';

define("USER_ADMIN", 2);
define("USER_STANDARD", 1);
define("USER_BANNED", 0);
define("USER_NOTYET_LOGIN", -1);

$route;

class Controller {
	public $model;
	public function __construct()
	{
		$this->model = new Model();
	}

	public function invoke()
	{
		$route = "home";
		if(isset($_GET['route'])){
			$route = $_GET['route'];
		}
		include 'view/'.$route.'.php';
	}
}
?>
